﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Qianli.DirSir.Model;
using Qianli.DirSir.DAL;

namespace Qianli.DirSir.BLL
{
    public class ProviderInfoBLL
    {
        ProviderInfoDAL dal = new ProviderInfoDAL();
        public List<ProviderInfo> ProviderInfoShow()
        {
            return dal.ProviderInfoShow();
        }
        /// <summary>
        /// 添加供应商
        /// </summary>
        /// <param name="Shinfo"></param>
        /// <returns></returns>
        public int ProviderInfoAdd(ProviderInfo Provd)
        {
            return dal.ProviderInfoAdd(Provd);
        }
        /// <summary>
        /// 根据id获取数据
        /// </summary>
        /// <param name="Proid"></param>
        /// <returns></returns>
        public ProviderInfo ProviderInfoGetID(int Proid)
        {
            return dal.ProviderInfoGetID(Proid);
        }
        /// <summary>
        /// 修改供应商信息
        /// </summary>
        /// <param name="Provd"></param>
        /// <returns></returns>
        public int ProviderInfoUpdate(ProviderInfo Provd)
        {
            return dal.ProviderInfoUpdate(Provd);
        }
        /// <summary>
        /// 根据ID删除
        /// </summary>
        /// <param name="Proid"></param>
        /// <returns></returns>
        public int ProviderInfoDelete(int Proid)
        {
            return dal.ProviderInfoDelete(Proid);
        }
        /// <summary>
        /// 模糊查询
        /// </summary>
        /// <param name="ProName"></param>
        /// <returns></returns>
        public List<ProviderInfo> ProviderInfoSelect(string ProName)
        {
            return dal.ProviderInfoSelect(ProName);
        }
    }
}
